<template>
  <van-nav-bar class="hmNavBar" @click-left="$router.push(path)">
    <!-- 使用插槽 -->
    <template #left>
      <i class="iconfont f44">&#xe637;</i>
    </template>
    <template #title>
      <div class="title">
        {{ title }}
      </div>
    </template>
  </van-nav-bar>
</template>
<script>
export default {
  props: ['title', 'path']
}
</script>
<style lang="less">
.hmNavBar {
  .f44 {
    font-size: 44px;
  }
  ::v-deep .van-nav-bar__left,
  ::v-deep .van-nav-bar__left {
    padding: 0;
  }
  .title {
    font-size: 18px;
    font-family: PingFangSC, PingFangSC-Semibold;
    font-weight: 600;
    text-align: left;
    color: #222222;
    line-height: 25px;
    letter-spacing: 0px;
  }
}
</style>
